package com.cxria.pattern.decorate

class HighScoreDecorator extends Decorator{

    HighScoreDecorator(SchoolReport sr) {
        super(sr)
    }

    private void reportHignScore(){
        println '这次考试语文最高75,数学75,自然80'
    }

    @Override
    void report() {
        reportHignScore()
        super.report()
    }

}
